package com.ydd.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;



import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageResult implements Serializable {

    private long total; //总记录数

    private List records; //当前页数据集合

    private long count; //总记录数

    private long totalPages; //总页数

    private long pageSize; //每页数量

    private long currentPage; //当前页码

    private Object data; //分页返回数据详情

}

